package com.thuan.android3d;

import android.graphics.Bitmap;

public class GameObject {
	
	protected float x;
	protected float y;
	protected float width;
	protected float height;
	protected float rotation;
	protected float anchorX;
	protected float anchorY;
	protected Bitmap bitmap;
	protected float left;
	protected float right;
	protected float top;
	protected float bottom;
	protected float tranX;
	protected float tranY;
	
	public boolean checkInside(float xi, float yi) {
		return (xi > left && xi < right && yi > bottom && yi < top);
	}
	
	public float getX() {
		return x;
	}
	public void setX(float x) {
		this.x = x;
	}
	public float getY() {
		return y;
	}
	public void setY(float y) {
		this.y = y;
	}
	public float getWidth() {
		return width;
	}
	public void setWidth(float width) {
		this.width = width;
	}
	public float getHeight() {
		return height;
	}
	public void setHeight(float height) {
		this.height = height;
	}
	public float getRotation() {
		return rotation;
	}
	public void setRotation(float rotation) {
		this.rotation = rotation;
	}
	public float getAnchorX() {
		return anchorX;
	}
	public void setAnchorX(float anchorX) {
		this.anchorX = anchorX;
	}
	public float getAnchorY() {
		return anchorY;
	}
	public void setAnchorY(float anchorY) {
		this.anchorY = anchorY;
	}
	public float getLeft() {
		return left;
	}
	public void setLeft(float left) {
		this.left = left;
	}
	public float getRight() {
		return right;
	}
	public void setRight(float right) {
		this.right = right;
	}
	public float getTop() {
		return top;
	}
	public void setTop(float top) {
		this.top = top;
	}
	public float getBottom() {
		return bottom;
	}
	public void setBottom(float bottom) {
		this.bottom = bottom;
	}

	public float getTranX() {
		return tranX;
	}

	public void setTranX(float tranX) {
		this.tranX = tranX;
	}

	public float getTranY() {
		return tranY;
	}

	public void setTranY(float tranY) {
		this.tranY = tranY;
	}
	
}
